package com.liang.springcloud.pojo;


import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;


@Data
@NoArgsConstructor
@Accessors(chain = true)//链式写法
public class Dept implements Serializable {
    private Long deptno;//主键
    private String dname;

    private String db_source;//一个服务对应一个数据库，数据库存的字段

    public Dept(String dname) {
        this.dname = dname;
    }
}
